<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/systemApps/celebriomail/default.css" type="text/css" />
<div style="font-size:20pt;">
{!$mailContents}
{if isset($attachments)}
    <hr />
    <p>Attachments:</p>
    {foreach $attachments as $attachment}
    <div class="celebriomailapp_attachment">
        {if $attachment->getData() != ""}
        <div class="celebriomailapp_attachment_sample">
            <img src="data:{$attachment->getMime_type()};{$attachment->getEncodingString()},{$attachment->getData()}" />
        </div>
        {/if}
            <p>{$attachment->getName()}</p>
    </div>
    {/foreach}
{/if}
</div>